/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package visualcbir.board;


import Grid.Cell.CellItemInterface;
import java.util.EventObject;

/**
 *
 * @author robertopinho
 */
public class MoveEvent extends EventObject {
    private CellItemInterface item;
    private boolean remove = false;
    
    public MoveEvent(Object source){
        super(source);
    }

    public MoveEvent(Object source, CellItemInterface item) {
        super(source);
        this.item = item;
        
    }
    
    public MoveEvent(Object source, CellItemInterface item, boolean remove) {
        super(source);
        this.item = item;
        this.remove = remove;
        
    }
    
    
    public CellItemInterface movedItem(){
        return this.item;
        
    }

    public boolean isRemove() {
        return remove;
    }

    public void setRemove(boolean remove) {
        this.remove = remove;
    }

}
